<?php

namespace App\Http\Controllers;


use App\Repositories\Summary\SummaryFilter;
use App\Repositories\Summary\SummaryRepository;
use App\Transformers\SummaryTransformer;
use Illuminate\Http\Request;

class SummaryController extends Controller
{
    public function index(SummaryRepository $summaryRepository, Request $request)
    {
        $paginator = $summaryRepository->getPaginator(new SummaryFilter($request));
        return $this->response->paginator($paginator, new SummaryTransformer());
    }
}


